<template>
	<view class="reason">
		<textarea class="textarea" v-model="txt" placeholder="填写拒绝理由..."></textarea>
		<view class="bottom_btn s32 familytow fblod txtali" @click="submit">
			拒绝
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				txt: '',
				id: 0
			}
		},
		onLoad(options) {
			this.id = options.id
		},
		methods: {
			submit() {
				this.$request({
					url: 'manage/setCustomStataus',
					data: {
						id: this.id,
						status: 2,
						remark: this.txt
					}
				}).then(res => {
					uni.showToast({
						title: res.data.msg,
						icon: 'none',
						duration: 2000
					})
					if(res.data.code == 1) {
						setTimeout(() => {
							uni.navigateBack({delta:2})
						},2001)
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.reason {
		overflow: hidden;
		.textarea {
			width: 686upx;
			height: 482upx;
			background: #FFFFFF;
			border-radius: 8upx;
			margin: 20upx auto;
			padding: 28upx 30upx 28upx 20upx;
		}
		.bottom_btn {
			width: 686upx;
			height: 100upx;
			background: #A1A1A1;
			border-radius: 50upx;
			color: #FFFFFF;
			line-height: 100upx;
			margin: 20upx auto;
		}
	}
</style>
<style>
	page {
		background-color: #F4F5F9;
	}
</style>